package com.util.cdb.service;

import com.util.cdb.bean.vo.QueryOperationPageVO;
import com.util.cdb.bean.vo.QueryOperationVO;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * @description: 传入操作，转化SQL
 * @author: fengfazheng
 * @create: 2021-12-26 22:56
 **/
public interface OperationService {
    /**
     * 通过queryOperationVO查询/返回数据类型为List
     *
     * @param queryOperationVO
     * @return
     */
    List<String> queryListByOperation(QueryOperationVO queryOperationVO) throws SQLException;

    /**
     * 通过queryOperationPageVO查询/返回数据类型为List(分页查表数据)
     *
     * @param queryOperationPageVO
     * @return
     */
    List<Map<String, Object>> queryListMapByOperation(QueryOperationPageVO queryOperationPageVO) throws SQLException;
}
